package com.my.fss;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@ServletComponentScan
@MapperScan(value = "com.my.fss.mapper")
@SpringBootApplication(scanBasePackages = "com.my")
@EnableEurekaClient
@EnableFeignClients// 开启Feign
public class FssApplication extends SpringBootServletInitializer {

    /**
     * 启动方法
     */
    public static void main(String[] args) {

        SpringApplication.run(FssApplication.class,args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(FssApplication.class);
    }


}
